<!--# layout("/common/layout.html",{"jsBase":"/jscms/todo/"}){ -->

<form class="layui-form " id="updateForm">
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
            <label class="layui-form-label">name</label>
				<div class="layui-input-inline">
					<input type="text" id="name" name="name"  value="${test.name}"  lay-verify="required" class="layui-input" >
				</div>
            </div>
            <div class="layui-inline">
            <label class="layui-form-label">phone</label>
				<div class="layui-input-inline">
					<input type="text" id="phone" name="phone"  value="${test.phone}"  lay-verify="required|number" class="layui-input" >
				</div>
            </div>
        </div>
    </div>


    <div class="layui-row">

        <div class="layui-col-xs4">
            <div class="layui-form-item">
                <label class="layui-form-label">角色类型</label>
                <layui:simpleDataSelect name="role_test" value="1" data="${keys}"
                                        attrId="id" attrName="name"/>
            </div>
        </div>
    </div>

    <div class="layui-row">
        <div class="layui-form-item">
        </div>
    </div>
	<!-- 业务对象须有hidden字段，保存delFlag和version字段-->
	<input type="hidden" name="delFlag" value=${test.delFlag} />
    <input type="hidden" name="id" value=${test.id} />
    <!--<layui:submitButtons id="updateButton" />-->
    <div class="layui-row">
            <button class="layui-btn layui-btn-danger" id="updateButton" type="button"  lay-submit lay-filter="form">保存</button>
            <button class="layui-btn" type="button" onclick="exit()">取消</button>
    </div>
</form>
<!--#} -->
<script>
layui.use(['edit'], function(){
    var testEdit = layui.edit
    testEdit.init();
});

function exit(){
    window.parent.location.href = '/logout.do';
}
</script>
